package com.rui1024.dao;

import com.rui1024.pojo.DiaryType;

import java.sql.Connection;
import java.util.List;


public interface DiaryTypeDao {

    List<DiaryType> diaryTypeCountList(Connection con)throws Exception;

    List<DiaryType> diaryTypeList(Connection con)throws Exception;

    int diaryAdd(Connection con, DiaryType diaryType)throws Exception;

    DiaryType diaryTypeShow(Connection con,int diaryTypeId)throws Exception;

    int diaryUpdate(Connection con, DiaryType diaryType)throws Exception;

    int diaryTypeDelete(Connection con, int diaryTypeId)throws Exception;
}
